package com.wanxi.chat.messagehandler.chat;

import com.wanxi.chat.dispatcher.MessageHandler;
import com.wanxi.chat.message.chat.ChatSendRequest;
import io.netty.channel.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class ChatSendRequestHandler implements MessageHandler<ChatSendRequest> {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void execute(Channel channel, ChatSendRequest message) {
        logger.info("[execute][收到消息：{}]", message);
    }

    @Override
    public String getType() {
        return ChatSendRequest.TYPE;
    }

}
